package com.situ.firmadmin.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    @ExcelProperty(value = "序号",index = 0)
    private Integer id;
    @ExcelProperty(value = "姓名",index = 1)
    private String name;
    @ExcelProperty(value = "密码",index = 2)
    private String password;
    @ExcelProperty(value = "部门",index = 3)
    private Integer departmentId;
    @ExcelProperty(value = "性别",index = 4)
    private String gender;
    @ExcelProperty(value = "生日",index = 5)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;
    @ExcelProperty(value = "地址",index = 6)
    private String address;
    @ExcelProperty(value = "电话",index = 7)
    private String phone;
    @ExcelProperty(value = "邮箱",index = 8)
    private String email;
    @ExcelProperty(value = "QQ号",index = 9)
    private String qqId;
    @ExcelProperty(value = "头像",index = 10)
    private String image;
    @ExcelProperty(value = "角色类型",index = 11)
    private Integer role;
    @ExcelProperty(value = "用户状态",index = 12)
    private Integer status;
    @ExcelProperty(value = "逻辑删除",index = 13)
    @JsonIgnore
    private Integer deleted;
    @ExcelProperty(value = "创建日期",index = 14)
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ExcelProperty(value = "更新日期",index = 15)
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @ExcelProperty(value = "省份ID",index = 16)
    private Integer provinceId;
    @ExcelProperty(value = "城市ID",index = 17)
    private Integer cityId;
    @ExcelProperty(value = "区县ID",index = 18)
    private Integer areaId;
}
